
const { ccclass, property } = cc._decorator;

@ccclass
export default class ScrollSelector_item extends cc.Component {

    @property(cc.Label)
    lbl_value: cc.Label = null;
    data
    initData(data: {
        value,
        type
    }) {
        this.lbl_value.string = data.value
        this.data = data
    }
    /** 设置边缘处理*/
    setFar(rate) {
        // rate *= 1.2
        rate = rate > 1 ? 1 : rate
        this.lbl_value.node.opacity = rate * 255 + 50

        this.lbl_value.node.scaleY = rate
    }
}
